package com.dcw.lixb.designmode.iterator;

/**
 * @author lixiaobin
 * @date 2020-07-28 14:45:18
 * @desc 描述信息
 */
public class IteratorMain {
    public static void main(String[] args) {
        NameRepository nameRepository = new NameRepository();
        Iterator<String> iterator = nameRepository.getIterator();
        while (iterator.hasNext()) {
            System.out.println("name : "+iterator.next());
        }
    }
}
